﻿using System.ComponentModel.DataAnnotations;

namespace HomeCloudStorageSystem.Dtos
{
    public class FileDirectoryForCreationDto
    {
        /// <summary>
        /// 父级目录ID
        /// </summary>
        public int ParentId { get; set; }
        /// <summary>
        /// 目录名
        /// </summary>
        [Required(ErrorMessage = "目录名不能为空")]
        public string? DirectoryName { get; set; }
        /// <summary>
        /// 目录路径
        /// </summary>
        [Required(ErrorMessage = "目录路径不能为空")]
        public string? DirectoryPath { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        [Required(ErrorMessage = "创建时间不能为空")]
        public string CreateTime { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        [Required(ErrorMessage = "创建人不能为空")]
        public int Creator { get; set; }
    }
}
